<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /* Please ❤ this if you like it! */

        .wrapper {
            padding-top: 30px;
            text-align: center;
        h1 {
            font-weight: normal;
        }
        input {
            padding: 10px;
            font-size: 1.2em;
        }


    </style>
</head>
<body>
<div class="wrapper">
    <h1>
        本地html搜索
    </h1>

    <input list="items">

    <datalist id="items">
        <option value="桃子">
        <option value="李子">
        <option value="苹果">
        <option value="火龙果">
        <option value="火龙王果(没听说过)">
    </datalist>
</div>
</body>
</html>